﻿using BDPAutodetect.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BDPAutodetect.Client
{
    /// <summary>
    /// 视图界面传输接口
    /// </summary>
    public interface ITransferView<T> where T : class
    {
        /// <summary>
        /// 数据模型服务
        /// </summary>
        BaseViewModel<T>? ModelService { get; set; }
        /// <summary>
        /// 页面跳转传输数据
        /// </summary>
        /// <typeparam name="TData">泛型</typeparam>
        /// <param name="argData">传递数据</param>
        void TransferData<TData>(TData argData) where TData : class, new();
        /// <summary>
        /// 传输权限许可信息
        /// </summary>
        void TransferPowerPermission(MPowerPermission argPowerPermission);
    }
}
